<div class="Content">
	<div class="column grid_8">
		<div class="column grid_7">
			<div class="FormTitle"> <h2>Customer Information</h2> </div>

		<?php  
			$this->load->helper('form');
			echo validation_errors();
			echo form_open('customer/update');
			
		?>
		<div id="Form_content">
		<?php foreach($customers as $customer):?>
	<table>
		<tr>
			<td>
				<input type="hidden" name="customerCode" id="customerCode" value="<?php echo $customer->customerCode; ?>" size="7" />
				<label for="firstname">First Name</label>
		    </td>
		    <td>
		    	<input type="text" name="firstname" id="firstname" value="<?php echo $customer->firstname; ?>" size="50" />
		    </td>
		</tr>
		<tr>
			<td>
				<label for="lastname">Last Name</label>
			</td>
			<td>
		    	<input type="text" name="lastname" id="lastname" value="<?php echo $customer->lastname; ?>" size="50" />
		    </td>
		</tr>
		<tr>
			<td>
				<label for="email">Email</label>
			</td>
			<td>
				<input type="text" name="email" id="email" value="<?php echo $customer->email; ?>" size="50" />
			</td>
		</tr>
		<tr>
			<td><input type="submit" value="Update" /></td>
		</tr>
	</table>
	<?php endforeach;?>
	</form>
	</div>
	<div class="FormTitle"> <h2>Head Quarters</h2> </div>
<div id="Form_content">
	<table id="display-list" width="100%">
		<?php foreach($hq as $h):?>
		<tr>
			<th>Name</th>
			<td><?php echo $h->name; ?></td>
		</tr>
		<tr>
			<th>Address</th>
			<td><?php echo $h->address; ?></td>
		</tr>
		<tr>
			<th>Postcode</th>
			<td><?php echo $h->postcode; ?></td>
		</tr>
		<?php endforeach;?>
	</table>
</div>

	
	<div class="FormTitle"> <h2>Branches</h2> </div>
	<div id="Form_content">
	<table id="display-list" width="100%">
		<tr>
			<th>Name</th>
			<th>Address</th>
			<th>Postcode</th>
		</tr>
		<?php foreach($branches as $branch):?>
		<tr>
			<td><?php echo $branch->name; ?></td>
			<td><?php echo $branch->address; ?></td>
			<td><?php echo $branch->postcode; ?></td>
		</tr>
		<?php endforeach;?>
	</table>
</div>
</div>
	</div>
</div>